import request from '@/utils/request'

// 查询盖亚组织列表
export function listGybaseunit(query) {
  return request({
    url: '/basedata/gybaseunit/list',
    method: 'get',
    params: query
  })
}

// 查询盖亚组织详细
export function getGybaseunit(fid) {
  return request({
    url: '/basedata/gybaseunit/' + fid,
    method: 'get'
  })
}

// 新增盖亚组织
export function addGybaseunit(data) {
  return request({
    url: '/basedata/gybaseunit',
    method: 'post',
    data: data
  })
}

// 修改盖亚组织
export function updateGybaseunit(data) {
  return request({
    url: '/basedata/gybaseunit',
    method: 'put',
    data: data
  })
}

// 删除盖亚组织
export function delGybaseunit(fid) {
  return request({
    url: '/basedata/gybaseunit/' + fid,
    method: 'delete'
  })
}

// 下载导入模板
export function importTemplate() {
  return request({
    url: '/basedata/gybaseunit/importTemplate',
    method: 'get'
  })
}
